/* Executive Chairs Product Grid Styling */

/* Product Grid Container */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card Styling */
.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Product Content */
.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1rem 1.5rem 0.5rem;
    line-height: 1.4;
}

.product-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 1.5rem;
    flex-grow: 1;
    padding-bottom: 1rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    margin: 0 1.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Product Badges */
.new-product,
.onsale {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

.new-product {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.onsale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Animation Classes for JavaScript */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

/* Keyframe Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .product-card img {
        height: 220px;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .product-card p {
        font-size: 0.9rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
        padding: 1rem 0;
    }
    
    .product-card {
        margin: 0 0.5rem;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .product-card h3 {
        font-size: 1rem;
        margin: 0.75rem 1rem 0.5rem;
    }
    
    .product-card p {
        font-size: 0.85rem;
        margin: 0 1rem;
        padding-bottom: 0.75rem;
    }
    
    .cta-button {
        margin: 0 1rem 1rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .new-product,
    .onsale {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.375rem 0.625rem;
        font-size: 0.7rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin: 0;
        max-width: 100%;
    }
    
    .product-card img {
        height: 180px;
    }
}

/* Animation Delays for Staggered Effect */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* Loading State for Dynamic Content */
.product-card.loading {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Focus States for Accessibility */
.product-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.cta-button:focus {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}